package com.huitu.whht.base.core.api.wq.bcp;

import com.huitu.api.rest.AbstractApiResource;
import com.huitu.commons.PageUtils;
import com.huitu.whht.api.core.common.response.ApiResultBuilder;
import com.huitu.whht.api.core.common.annotations.SzyCoreApiResource;
import com.huitu.whht.api.core.common.annotations.SzyCoreApiService;
import com.huitu.whht.api.core.common.response.StatusRespBuilder;
import com.huitu.whht.api.core.common.util.LocalDateTimeUtil;
import java.time.LocalDateTime;
import com.huitu.whht.base.core.api.wq.bcp.entities.WqBcpD;
import com.huitu.whht.base.core.api.wq.bcp.entities.WqBcpDKey;
import com.huitu.whht.base.core.api.wq.bcp.entities.WqBcpDQo;
import com.huitu.whht.base.core.api.wq.bcp.service.IWqBcpDService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.List;

import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

/**
 * 说明: 测站苯类有机物项目数据表API,表名称: WQ_BCP_D <br/>
 * 日期: 2019-04-11
 * @author LiuCW
 */
@Component
@SzyCoreApiResource
@Path("wq/bcp/d")
public class WqBcpDResource extends AbstractApiResource {

    private static final Logger LOGGER = LoggerFactory.getLogger(WqBcpDResource.class);

    private static final String UUID = "8f523f4d-3eab-4d0d-a02a-0e6bdb619f34";

    @Override
    public String getUUID() {
        return UUID;
    }

    @Autowired
    @SzyCoreApiService
    IWqBcpDService wqBcpDService;

    /**
     * @api {get} wq/bcp/d/{stcd:\\w{8}}/{spt}/{prpnm:\\w{1}}/{lynm:\\w{1}}/{wbtp:\\w{1}} [R][G]根据主键查询
     * @apiDescription [G]根据主键查询WQ_BCP_D(测站苯类有机物项目数据表)数据
     * @apiName (generate)select by primary key
     * @apiGroup WQ_BCP_D-测站苯类有机物项目数据表
     * @apiVersion 1.0.0
     * @apiSampleRequest wq/bcp/d/{stcd}/{spt}/{prpnm}/{lynm}/{wbtp}
     * @apiParam   {String}         stcd               【必须】测站编码
     * @apiParam   {Date}           spt                【必须】采样时间
     * @apiParam   {String}         prpnm              【必须】垂线编号
     * @apiParam   {String}         lynm               【必须】层面编号
     * @apiParam   {String}         wbtp               【必须】水体类型
     * @apiSuccess {String}         stcd               测站编码
     * @apiSuccess {String}         prpnm              垂线编号
     * @apiSuccess {String}         lynm               层面编号
     * @apiSuccess {String}         wbtp               水体类型
     * @apiSuccess {Date}           spt                采样时间(时间格式 <font color='red'>yyyy-MM-dd HH:mm:ss</font>)
     * @apiSuccess {Double}         ben                苯
     * @apiSuccess {Double}         jben               甲苯
     * @apiSuccess {Double}         yben               乙苯
     * @apiSuccess {Double}         erjben             二甲苯
     * @apiSuccess {Double}         lben               氯苯
     * @apiSuccess {Double}         benyx              苯乙烯
     * @apiSuccess {Double}         erlb12             1，2二氯苯
     * @apiSuccess {Double}         erlb14             1，4二氯苯
     * @apiSuccess {Double}         slb123             1，2，3三氯苯
     * @apiSuccess {Double}         slb124             1，2，4三氯苯
     * @apiSuccess {Double}         slb135             1，3，5三氯苯
     * @apiSuccess {Double}         silben             四氯苯
     * @apiSuccess {Double}         xjben              硝基苯
     * @apiSuccess {Double}         erxjb12            1，2二硝基苯
     * @apiSuccess {Double}         erxjb13            1，3二硝基苯
     * @apiSuccess {Double}         erxjb14            1，4二硝基苯
     * @apiSuccess {Double}         erxjjb24           2，4二硝基甲苯
     * @apiSuccess {Double}         sxjjb246           2，4，6三硝基甲苯
     * @apiSuccess {Double}         xjlb2              2-硝基氯苯
     * @apiSuccess {Double}         xjlb3              3-硝基氯苯
     * @apiSuccess {Double}         xjlb4              4-硝基氯苯
     * @apiSuccess {Double}         erxjlb24           2，4二硝基氯苯
     * @apiSuccess {Double}         pcb                多氯联苯
     * @apiSuccess {Double}         ybben              异丙苯
     * @apiSuccess {Double}         benan              苯胺
     * @apiSuccess {Double}         lbenan             联苯胺
     * @apiSuccess {Double}         lbejsejzh          邻苯二甲酸二甲酯
     * @apiSuccess {Double}         lbejsedzh          邻苯二甲酸二丁脂
     * @apiSuccess {Double}         lbejsexzh          邻苯二甲酸二辛脂
     * @apiSuccess {String}         nt                 备注
     * @apiSuccess {String}         speRegData         特殊区域
     * @apiSuccess {Date}           ts                 时间戳(时间格式 <font color='red'>yyyy-MM-dd HH:mm:ss</font>)
     * @apiSuccess {Date}           testComTm          化验完成时间(时间格式 <font color='red'>yyyy-MM-dd HH:mm:ss</font>)
     * @apiSuccessExample 请求成功:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "stcd": null,
     * "prpnm": null,
     * "lynm": null,
     * "wbtp": null,
     * "spt": null,
     * "ben": null,
     * "jben": null,
     * "yben": null,
     * "erjben": null,
     * "lben": null,
     * "benyx": null,
     * "erlb12": null,
     * "erlb14": null,
     * "slb123": null,
     * "slb124": null,
     * "slb135": null,
     * "silben": null,
     * "xjben": null,
     * "erxjb12": null,
     * "erxjb13": null,
     * "erxjb14": null,
     * "erxjjb24": null,
     * "sxjjb246": null,
     * "xjlb2": null,
     * "xjlb3": null,
     * "xjlb4": null,
     * "erxjlb24": null,
     * "pcb": null,
     * "ybben": null,
     * "benan": null,
     * "lbenan": null,
     * "lbejsejzh": null,
     * "lbejsedzh": null,
     * "lbejsexzh": null,
     * "nt": null,
     * "speRegData": null,
     * "ts": null,
     * "testComTm": null
     *  }
     * }
     * @apiUse exceptions
     */
    @GET
    @Path("{stcd:\\w{8}}/{spt}/{prpnm:\\w{1}}/{lynm:\\w{1}}/{wbtp:\\w{1}}")
    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
    public Response selectByPrimaryKey(@PathParam("stcd") String stcd,@PathParam("spt") String spt,@PathParam("prpnm") String prpnm,@PathParam("lynm") String lynm,@PathParam("wbtp") String wbtp) {
        WqBcpDKey pk = new WqBcpDKey();
        pk.setStcd(stcd);
        LocalDateTime.parse(spt,LocalDateTimeUtil.DATE_TIME_FORMATTER_YMD_HMS);
        pk.setPrpnm(prpnm);
        pk.setLynm(lynm);
        pk.setWbtp(wbtp);
        LOGGER.info("根据主键查询 测站苯类有机物项目数据表,参数 pk:{}", pk);
        return Response.ok(ApiResultBuilder.create(this, wqBcpDService.selectByPrimaryKey(pk))).build();
    }

    /**
     * @api {post} wq/bcp/d/list [R][G]根据条件查询
     * @apiDescription [G]根据条件查询WQ_BCP_D(测站苯类有机物项目数据表)数据
     * @apiName (generate)select by filter
     * @apiGroup WQ_BCP_D-测站苯类有机物项目数据表
     * @apiVersion 1.0.0
     * @apiSampleRequest wq/bcp/d/list
     * @apiParam   {String}         stcd               测站编码
     * @apiParam   {List(String)}   prpnmList          (数组)垂线编号
     * @apiParam   {List(String)}   lynmList           (数组)层面编号
     * @apiParam   {List(String)}   wbtpList           (数组)水体类型
     * @apiParam   {Date}           sptBgTm            (开始时间)采样时间
     * @apiParam   {Date}           sptEdTm            (结束时间)采样时间
     * @apiParam   {Double}         benMin             (最小)苯
     * @apiParam   {Double}         benMax             (最大)苯
     * @apiParam   {Double}         jbenMin            (最小)甲苯
     * @apiParam   {Double}         jbenMax            (最大)甲苯
     * @apiParam   {Double}         ybenMin            (最小)乙苯
     * @apiParam   {Double}         ybenMax            (最大)乙苯
     * @apiParam   {Double}         erjbenMin          (最小)二甲苯
     * @apiParam   {Double}         erjbenMax          (最大)二甲苯
     * @apiParam   {List(Double)}   lbenList           (数组)氯苯
     * @apiParam   {List(Double)}   benyxList          (数组)苯乙烯
     * @apiParam   {Double}         erlb12Min          (最小)1，2二氯苯
     * @apiParam   {Double}         erlb12Max          (最大)1，2二氯苯
     * @apiParam   {Double}         erlb14Min          (最小)1，4二氯苯
     * @apiParam   {Double}         erlb14Max          (最大)1，4二氯苯
     * @apiParam   {Double}         slb123Min          (最小)1，2，3三氯苯
     * @apiParam   {Double}         slb123Max          (最大)1，2，3三氯苯
     * @apiParam   {Double}         slb124Min          (最小)1，2，4三氯苯
     * @apiParam   {Double}         slb124Max          (最大)1，2，4三氯苯
     * @apiParam   {Double}         slb135Min          (最小)1，3，5三氯苯
     * @apiParam   {Double}         slb135Max          (最大)1，3，5三氯苯
     * @apiParam   {Double}         silbenMin          (最小)四氯苯
     * @apiParam   {Double}         silbenMax          (最大)四氯苯
     * @apiParam   {Double}         xjbenMin           (最小)硝基苯
     * @apiParam   {Double}         xjbenMax           (最大)硝基苯
     * @apiParam   {Double}         erxjb12Min         (最小)1，2二硝基苯
     * @apiParam   {Double}         erxjb12Max         (最大)1，2二硝基苯
     * @apiParam   {Double}         erxjb13Min         (最小)1，3二硝基苯
     * @apiParam   {Double}         erxjb13Max         (最大)1，3二硝基苯
     * @apiParam   {Double}         erxjb14Min         (最小)1，4二硝基苯
     * @apiParam   {Double}         erxjb14Max         (最大)1，4二硝基苯
     * @apiParam   {Double}         erxjjb24Min        (最小)2，4二硝基甲苯
     * @apiParam   {Double}         erxjjb24Max        (最大)2，4二硝基甲苯
     * @apiParam   {List(Double)}   sxjjb246List       (数组)2，4，6三硝基甲苯
     * @apiParam   {Double}         xjlb2Min           (最小)2-硝基氯苯
     * @apiParam   {Double}         xjlb2Max           (最大)2-硝基氯苯
     * @apiParam   {Double}         xjlb3Min           (最小)3-硝基氯苯
     * @apiParam   {Double}         xjlb3Max           (最大)3-硝基氯苯
     * @apiParam   {Double}         xjlb4Min           (最小)4-硝基氯苯
     * @apiParam   {Double}         xjlb4Max           (最大)4-硝基氯苯
     * @apiParam   {List(Double)}   erxjlb24List       (数组)2，4二硝基氯苯
     * @apiParam   {Double}         pcbMin             (最小)多氯联苯
     * @apiParam   {Double}         pcbMax             (最大)多氯联苯
     * @apiParam   {Double}         ybbenMin           (最小)异丙苯
     * @apiParam   {Double}         ybbenMax           (最大)异丙苯
     * @apiParam   {Double}         benanMin           (最小)苯胺
     * @apiParam   {Double}         benanMax           (最大)苯胺
     * @apiParam   {Double}         lbenanMin          (最小)联苯胺
     * @apiParam   {Double}         lbenanMax          (最大)联苯胺
     * @apiParam   {Double}         lbejsejzhMin       (最小)邻苯二甲酸二甲酯
     * @apiParam   {Double}         lbejsejzhMax       (最大)邻苯二甲酸二甲酯
     * @apiParam   {Double}         lbejsedzhMin       (最小)邻苯二甲酸二丁脂
     * @apiParam   {Double}         lbejsedzhMax       (最大)邻苯二甲酸二丁脂
     * @apiParam   {Double}         lbejsexzhMin       (最小)邻苯二甲酸二辛脂
     * @apiParam   {Double}         lbejsexzhMax       (最大)邻苯二甲酸二辛脂
     * @apiParam   {String}         nt                 备注
     * @apiParam   {List(String)}   speRegDataList     (数组)特殊区域
     * @apiParam   {Date}           tsBgTm             (开始时间)时间戳
     * @apiParam   {Date}           tsEdTm             (结束时间)时间戳
     * @apiParam   {Date}           testComTmBgTm      (开始时间)化验完成时间
     * @apiParam   {Date}           testComTmEdTm      (结束时间)化验完成时间
     * @apiSuccess {String}         stcd               测站编码
     * @apiSuccess {String}         prpnm              垂线编号
     * @apiSuccess {String}         lynm               层面编号
     * @apiSuccess {String}         wbtp               水体类型
     * @apiSuccess {Date}           spt                采样时间
     * @apiSuccess {Double}         ben                苯
     * @apiSuccess {Double}         jben               甲苯
     * @apiSuccess {Double}         yben               乙苯
     * @apiSuccess {Double}         erjben             二甲苯
     * @apiSuccess {Double}         lben               氯苯
     * @apiSuccess {Double}         benyx              苯乙烯
     * @apiSuccess {Double}         erlb12             1，2二氯苯
     * @apiSuccess {Double}         erlb14             1，4二氯苯
     * @apiSuccess {Double}         slb123             1，2，3三氯苯
     * @apiSuccess {Double}         slb124             1，2，4三氯苯
     * @apiSuccess {Double}         slb135             1，3，5三氯苯
     * @apiSuccess {Double}         silben             四氯苯
     * @apiSuccess {Double}         xjben              硝基苯
     * @apiSuccess {Double}         erxjb12            1，2二硝基苯
     * @apiSuccess {Double}         erxjb13            1，3二硝基苯
     * @apiSuccess {Double}         erxjb14            1，4二硝基苯
     * @apiSuccess {Double}         erxjjb24           2，4二硝基甲苯
     * @apiSuccess {Double}         sxjjb246           2，4，6三硝基甲苯
     * @apiSuccess {Double}         xjlb2              2-硝基氯苯
     * @apiSuccess {Double}         xjlb3              3-硝基氯苯
     * @apiSuccess {Double}         xjlb4              4-硝基氯苯
     * @apiSuccess {Double}         erxjlb24           2，4二硝基氯苯
     * @apiSuccess {Double}         pcb                多氯联苯
     * @apiSuccess {Double}         ybben              异丙苯
     * @apiSuccess {Double}         benan              苯胺
     * @apiSuccess {Double}         lbenan             联苯胺
     * @apiSuccess {Double}         lbejsejzh          邻苯二甲酸二甲酯
     * @apiSuccess {Double}         lbejsedzh          邻苯二甲酸二丁脂
     * @apiSuccess {Double}         lbejsexzh          邻苯二甲酸二辛脂
     * @apiSuccess {String}         nt                 备注
     * @apiSuccess {String}         speRegData         特殊区域
     * @apiSuccess {Date}           ts                 时间戳
     * @apiSuccess {Date}           testComTm          化验完成时间
     * @apiSuccessExample 请求成功:
     * HTTP/1.1 200 OK
     * {
     * "result": [{
     * "stcd": null,
     * "prpnm": null,
     * "lynm": null,
     * "wbtp": null,
     * "spt": null,
     * "ben": null,
     * "jben": null,
     * "yben": null,
     * "erjben": null,
     * "lben": null,
     * "benyx": null,
     * "erlb12": null,
     * "erlb14": null,
     * "slb123": null,
     * "slb124": null,
     * "slb135": null,
     * "silben": null,
     * "xjben": null,
     * "erxjb12": null,
     * "erxjb13": null,
     * "erxjb14": null,
     * "erxjjb24": null,
     * "sxjjb246": null,
     * "xjlb2": null,
     * "xjlb3": null,
     * "xjlb4": null,
     * "erxjlb24": null,
     * "pcb": null,
     * "ybben": null,
     * "benan": null,
     * "lbenan": null,
     * "lbejsejzh": null,
     * "lbejsedzh": null,
     * "lbejsexzh": null,
     * "nt": null,
     * "speRegData": null,
     * "ts": null,
     * "testComTm": null
     *  }]
     * }
     *
     * @apiSuccessExample 分页请求:
     * request header: Rang={max=50;size=50;field=TS DESC}
     * HTTP/1.1 200 OK
     * {
     * "result": [{
     * "stcd": null,
     * "prpnm": null,
     * "lynm": null,
     * "wbtp": null,
     * "spt": null,
     * "ben": null,
     * "jben": null,
     * "yben": null,
     * "erjben": null,
     * "lben": null,
     * "benyx": null,
     * "erlb12": null,
     * "erlb14": null,
     * "slb123": null,
     * "slb124": null,
     * "slb135": null,
     * "silben": null,
     * "xjben": null,
     * "erxjb12": null,
     * "erxjb13": null,
     * "erxjb14": null,
     * "erxjjb24": null,
     * "sxjjb246": null,
     * "xjlb2": null,
     * "xjlb3": null,
     * "xjlb4": null,
     * "erxjlb24": null,
     * "pcb": null,
     * "ybben": null,
     * "benan": null,
     * "lbenan": null,
     * "lbejsejzh": null,
     * "lbejsedzh": null,
     * "lbejsexzh": null,
     * "nt": null,
     * "speRegData": null,
     * "ts": null,
     * "testComTm": null
     *  }],
     * "paging": {
     * "count": 3,
     * "total": 120,
     * "finale": false,
     * "index": 1
     * }
     * }
     * @apiUse header_rang
     * @apiUse exceptions
     */
    @POST
    @Path("list")
    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
    public Response selectList(WqBcpDQo filter) {
        PageUtils.startPageFromRang();
        LOGGER.info("根据条件查询 测站苯类有机物项目数据表,参数 WqBcpDQo:{}", filter);
        return Response.ok(ApiResultBuilder.create(this, wqBcpDService.selectList(filter))).build();
    }

    /**
     * @api {put} wq/bcp/d [C][G]新增数据
     * @apiPrivate
     * @apiDescription [G]新增WQ_BCP_D(测站苯类有机物项目数据表)数据
     * @apiName (generate)add data
     * @apiGroup WQ_BCP_D-测站苯类有机物项目数据表
     * @apiVersion 1.0.0
     * @apiParam   {String}         stcd               【必须】测站编码
     * @apiParam   {String}         prpnm              【必须】垂线编号
     * @apiParam   {String}         lynm               【必须】层面编号
     * @apiParam   {String}         wbtp               【必须】水体类型
     * @apiParam   {Date}           spt                【必须】采样时间(时间格式 <font color='red'>yyyy-MM-dd HH:mm:ss</font>)
     * @apiParam   {Double}         ben                苯
     * @apiParam   {Double}         jben               甲苯
     * @apiParam   {Double}         yben               乙苯
     * @apiParam   {Double}         erjben             二甲苯
     * @apiParam   {Double}         lben               氯苯
     * @apiParam   {Double}         benyx              苯乙烯
     * @apiParam   {Double}         erlb12             1，2二氯苯
     * @apiParam   {Double}         erlb14             1，4二氯苯
     * @apiParam   {Double}         slb123             1，2，3三氯苯
     * @apiParam   {Double}         slb124             1，2，4三氯苯
     * @apiParam   {Double}         slb135             1，3，5三氯苯
     * @apiParam   {Double}         silben             四氯苯
     * @apiParam   {Double}         xjben              硝基苯
     * @apiParam   {Double}         erxjb12            1，2二硝基苯
     * @apiParam   {Double}         erxjb13            1，3二硝基苯
     * @apiParam   {Double}         erxjb14            1，4二硝基苯
     * @apiParam   {Double}         erxjjb24           2，4二硝基甲苯
     * @apiParam   {Double}         sxjjb246           2，4，6三硝基甲苯
     * @apiParam   {Double}         xjlb2              2-硝基氯苯
     * @apiParam   {Double}         xjlb3              3-硝基氯苯
     * @apiParam   {Double}         xjlb4              4-硝基氯苯
     * @apiParam   {Double}         erxjlb24           2，4二硝基氯苯
     * @apiParam   {Double}         pcb                多氯联苯
     * @apiParam   {Double}         ybben              异丙苯
     * @apiParam   {Double}         benan              苯胺
     * @apiParam   {Double}         lbenan             联苯胺
     * @apiParam   {Double}         lbejsejzh          邻苯二甲酸二甲酯
     * @apiParam   {Double}         lbejsedzh          邻苯二甲酸二丁脂
     * @apiParam   {Double}         lbejsexzh          邻苯二甲酸二辛脂
     * @apiParam   {String}         nt                 备注
     * @apiParam   {String}         speRegData         特殊区域
     * @apiParam   {Date}           ts                 时间戳(时间格式 <font color='red'>yyyy-MM-dd HH:mm:ss</font>)
     * @apiParam   {Date}           testComTm          化验完成时间(时间格式 <font color='red'>yyyy-MM-dd HH:mm:ss</font>)
     * @apiSuccess {Integer}        status             1:新增成功;0:新增失败.
     * @apiSuccess {String}         message            成功/失败消息内容
     * @apiSuccess {Object}         data               额外返回的数据,通常包含新增数据的主键值
     * @apiSampleRequest wq/bcp/d
     * @apiSuccessExample 新增成功:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":1,
     * "message":"成功",
     * "data":{
     *   "stcd": null,
     *   "spt": null,
     *   "prpnm": null,
     *   "lynm": null,
     *   "wbtp": null
     *      }
     *   }
     * }
     @apiSuccessExample 新增失败:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":0,
     * "message":"失败",
     * "data":{
     *   "stcd": null,
     *   "spt": null,
     *   "prpnm": null,
     *   "lynm": null,
     *   "wbtp": null
     *      }
     *   }
     * }
     * @apiParamExample {json} 请求示例:
     * {
     * "stcd": null,
     * "prpnm": null,
     * "lynm": null,
     * "wbtp": null,
     * "spt": null,
     * "ben": null,
     * "jben": null,
     * "yben": null,
     * "erjben": null,
     * "lben": null,
     * "benyx": null,
     * "erlb12": null,
     * "erlb14": null,
     * "slb123": null,
     * "slb124": null,
     * "slb135": null,
     * "silben": null,
     * "xjben": null,
     * "erxjb12": null,
     * "erxjb13": null,
     * "erxjb14": null,
     * "erxjjb24": null,
     * "sxjjb246": null,
     * "xjlb2": null,
     * "xjlb3": null,
     * "xjlb4": null,
     * "erxjlb24": null,
     * "pcb": null,
     * "ybben": null,
     * "benan": null,
     * "lbenan": null,
     * "lbejsejzh": null,
     * "lbejsedzh": null,
     * "lbejsexzh": null,
     * "nt": null,
     * "speRegData": null,
     * "ts": null,
     * "testComTm": null
     * }
     * @apiUse exceptions
     */
    @PUT
    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
    public Response insert(WqBcpD record) {
        LOGGER.info("新增 测站苯类有机物项目数据表,参数 WqBcpD:{}", record);
        return Response.ok(ApiResultBuilder.create(this, StatusRespBuilder.insert(wqBcpDService.insertSelective(record),record))).build();
    }

    /**
     * @api {post} wq/bcp/d/insertBatch [C][G]批量新增数据
     * @apiPrivate
     * @apiDescription [G]批量新增WQ_BCP_D(测站苯类有机物项目数据表)数据
     * @apiName (generate)addBatch data
     * @apiGroup WQ_BCP_D-测站苯类有机物项目数据表
     * @apiVersion 1.0.0
     * @apiParam   {String}         stcd               【必须】测站编码
     * @apiParam   {String}         prpnm              【必须】垂线编号
     * @apiParam   {String}         lynm               【必须】层面编号
     * @apiParam   {String}         wbtp               【必须】水体类型
     * @apiParam   {Date}           spt                【必须】采样时间(时间格式 <font color='red'>yyyy-MM-dd HH:mm:ss</font>)
     * @apiParam   {Double}         ben                苯
     * @apiParam   {Double}         jben               甲苯
     * @apiParam   {Double}         yben               乙苯
     * @apiParam   {Double}         erjben             二甲苯
     * @apiParam   {Double}         lben               氯苯
     * @apiParam   {Double}         benyx              苯乙烯
     * @apiParam   {Double}         erlb12             1，2二氯苯
     * @apiParam   {Double}         erlb14             1，4二氯苯
     * @apiParam   {Double}         slb123             1，2，3三氯苯
     * @apiParam   {Double}         slb124             1，2，4三氯苯
     * @apiParam   {Double}         slb135             1，3，5三氯苯
     * @apiParam   {Double}         silben             四氯苯
     * @apiParam   {Double}         xjben              硝基苯
     * @apiParam   {Double}         erxjb12            1，2二硝基苯
     * @apiParam   {Double}         erxjb13            1，3二硝基苯
     * @apiParam   {Double}         erxjb14            1，4二硝基苯
     * @apiParam   {Double}         erxjjb24           2，4二硝基甲苯
     * @apiParam   {Double}         sxjjb246           2，4，6三硝基甲苯
     * @apiParam   {Double}         xjlb2              2-硝基氯苯
     * @apiParam   {Double}         xjlb3              3-硝基氯苯
     * @apiParam   {Double}         xjlb4              4-硝基氯苯
     * @apiParam   {Double}         erxjlb24           2，4二硝基氯苯
     * @apiParam   {Double}         pcb                多氯联苯
     * @apiParam   {Double}         ybben              异丙苯
     * @apiParam   {Double}         benan              苯胺
     * @apiParam   {Double}         lbenan             联苯胺
     * @apiParam   {Double}         lbejsejzh          邻苯二甲酸二甲酯
     * @apiParam   {Double}         lbejsedzh          邻苯二甲酸二丁脂
     * @apiParam   {Double}         lbejsexzh          邻苯二甲酸二辛脂
     * @apiParam   {String}         nt                 备注
     * @apiParam   {String}         speRegData         特殊区域
     * @apiParam   {Date}           ts                 时间戳(时间格式 <font color='red'>yyyy-MM-dd HH:mm:ss</font>)
     * @apiParam   {Date}           testComTm          化验完成时间(时间格式 <font color='red'>yyyy-MM-dd HH:mm:ss</font>)
     * @apiSuccess {Integer}        status             1:新增成功;0:新增失败.
     * @apiSuccess {String}         message            成功/失败消息内容
     * @apiSuccess {Object}         data               额外返回的数据,通常包含新增数据的主键值
     * @apiSampleRequest wq/bcp/d/insertBatch
     * @apiSuccessExample 新增成功:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":1,
     * "message":"成功",
     * "data":{
     *   "stcd": null,
     *   "spt": null,
     *   "prpnm": null,
     *   "lynm": null,
     *   "wbtp": null
     *      }
     *   }
     * }
     @apiSuccessExample 新增失败:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":0,
     * "message":"失败",
     * "data":{
     *   "stcd": null,
     *   "spt": null,
     *   "prpnm": null,
     *   "lynm": null,
     *   "wbtp": null
     *      }
     *   }
     * }
     * @apiParamExample {json} 请求示例:
     * [{
     * "stcd": null,
     * "prpnm": null,
     * "lynm": null,
     * "wbtp": null,
     * "spt": null,
     * "ben": null,
     * "jben": null,
     * "yben": null,
     * "erjben": null,
     * "lben": null,
     * "benyx": null,
     * "erlb12": null,
     * "erlb14": null,
     * "slb123": null,
     * "slb124": null,
     * "slb135": null,
     * "silben": null,
     * "xjben": null,
     * "erxjb12": null,
     * "erxjb13": null,
     * "erxjb14": null,
     * "erxjjb24": null,
     * "sxjjb246": null,
     * "xjlb2": null,
     * "xjlb3": null,
     * "xjlb4": null,
     * "erxjlb24": null,
     * "pcb": null,
     * "ybben": null,
     * "benan": null,
     * "lbenan": null,
     * "lbejsejzh": null,
     * "lbejsedzh": null,
     * "lbejsexzh": null,
     * "nt": null,
     * "speRegData": null,
     * "ts": null,
     * "testComTm": null
     * }]
     * @apiUse exceptions
     */
    @POST
    @Path("insertBatch")
    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
    public Response insertBatch(List<WqBcpD> recordList) {
        LOGGER.info("批量新增 测站苯类有机物项目数据表,参数 WqBcpD:[]", recordList);
        return Response.ok(ApiResultBuilder.create(this, StatusRespBuilder.insert(wqBcpDService.insertBatch(recordList),recordList))).build();
    }

    /**
     * @api {put} wq/bcp/d/{stcd:\\w{8}}/{spt}/{prpnm:\\w{1}}/{lynm:\\w{1}}/{wbtp:\\w{1}}/update [U][G]根据主键修改
     * @apiPrivate
     * @apiDescription [G]根据主键修改WQ_BCP_D(测站苯类有机物项目数据表)数据
     * @apiName (generate)update data
     * @apiGroup WQ_BCP_D-测站苯类有机物项目数据表
     * @apiVersion 1.0.0
     * @apiParam   {String}         stcd               【必须】测站编码
     * @apiParam   {String}         prpnm              【必须】垂线编号
     * @apiParam   {String}         lynm               【必须】层面编号
     * @apiParam   {String}         wbtp               【必须】水体类型
     * @apiParam   {Date}           spt                【必须】采样时间
     * @apiParam   {Double}         ben                苯
     * @apiParam   {Double}         jben               甲苯
     * @apiParam   {Double}         yben               乙苯
     * @apiParam   {Double}         erjben             二甲苯
     * @apiParam   {Double}         lben               氯苯
     * @apiParam   {Double}         benyx              苯乙烯
     * @apiParam   {Double}         erlb12             1，2二氯苯
     * @apiParam   {Double}         erlb14             1，4二氯苯
     * @apiParam   {Double}         slb123             1，2，3三氯苯
     * @apiParam   {Double}         slb124             1，2，4三氯苯
     * @apiParam   {Double}         slb135             1，3，5三氯苯
     * @apiParam   {Double}         silben             四氯苯
     * @apiParam   {Double}         xjben              硝基苯
     * @apiParam   {Double}         erxjb12            1，2二硝基苯
     * @apiParam   {Double}         erxjb13            1，3二硝基苯
     * @apiParam   {Double}         erxjb14            1，4二硝基苯
     * @apiParam   {Double}         erxjjb24           2，4二硝基甲苯
     * @apiParam   {Double}         sxjjb246           2，4，6三硝基甲苯
     * @apiParam   {Double}         xjlb2              2-硝基氯苯
     * @apiParam   {Double}         xjlb3              3-硝基氯苯
     * @apiParam   {Double}         xjlb4              4-硝基氯苯
     * @apiParam   {Double}         erxjlb24           2，4二硝基氯苯
     * @apiParam   {Double}         pcb                多氯联苯
     * @apiParam   {Double}         ybben              异丙苯
     * @apiParam   {Double}         benan              苯胺
     * @apiParam   {Double}         lbenan             联苯胺
     * @apiParam   {Double}         lbejsejzh          邻苯二甲酸二甲酯
     * @apiParam   {Double}         lbejsedzh          邻苯二甲酸二丁脂
     * @apiParam   {Double}         lbejsexzh          邻苯二甲酸二辛脂
     * @apiParam   {String}         nt                 备注
     * @apiParam   {String}         speRegData         特殊区域
     * @apiParam   {Date}           ts                 【必须】时间戳
     * @apiParam   {Date}           testComTm          化验完成时间
     * @apiSuccess {Integer}        status             1:修改成功;0:要修改的数据不存在(可能已被删除)
     * @apiSuccess {String}         message            成功/失败消息内容
     * @apiSuccess {Object}         data               额外返回的数据
     * @apiSampleRequest wq/bcp/d/{stcd}/{spt}/{prpnm}/{lynm}/{wbtp}/update
     * @apiSuccessExample 修改成功:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":1,
     * "message":"成功",
     * "data":null
     *   }
     * }
     * @apiSuccessExample 修改失败:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":0,
     * "message":"失败",
     * "data":null
     *   }
     * }
     * @apiParamExample {json} 请求示例:
     * {
     * "stcd": null,
     * "prpnm": null,
     * "lynm": null,
     * "wbtp": null,
     * "spt": null,
     * "ben": null,
     * "jben": null,
     * "yben": null,
     * "erjben": null,
     * "lben": null,
     * "benyx": null,
     * "erlb12": null,
     * "erlb14": null,
     * "slb123": null,
     * "slb124": null,
     * "slb135": null,
     * "silben": null,
     * "xjben": null,
     * "erxjb12": null,
     * "erxjb13": null,
     * "erxjb14": null,
     * "erxjjb24": null,
     * "sxjjb246": null,
     * "xjlb2": null,
     * "xjlb3": null,
     * "xjlb4": null,
     * "erxjlb24": null,
     * "pcb": null,
     * "ybben": null,
     * "benan": null,
     * "lbenan": null,
     * "lbejsejzh": null,
     * "lbejsedzh": null,
     * "lbejsexzh": null,
     * "nt": null,
     * "speRegData": null,
     * "ts": null,
     * "testComTm": null
     * }
     * @apiUse exceptions
     */
    @PUT
    @Path("{stcd:\\w{8}}/{spt}/{prpnm:\\w{1}}/{lynm:\\w{1}}/{wbtp:\\w{1}}/update")
    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
    public Response update(@PathParam("stcd") String stcd,@PathParam("spt") String spt,@PathParam("prpnm") String prpnm,@PathParam("lynm") String lynm,@PathParam("wbtp") String wbtp, WqBcpD record) {
        record.setStcd(stcd);
        LocalDateTime.parse(spt,LocalDateTimeUtil.DATE_TIME_FORMATTER_YMD_HMS);
        record.setPrpnm(prpnm);
        record.setLynm(lynm);
        record.setWbtp(wbtp);
        LOGGER.info("根据主键修改 测站苯类有机物项目数据表,参数 WqBcpD:{}", record);
        return Response.ok(ApiResultBuilder.create(this, StatusRespBuilder.update(wqBcpDService.updateByPrimaryKey(record)))).build();
    }

    /**
     * @api {put} wq/bcp/d/{stcd:\\w{8}}/{spt}/{prpnm:\\w{1}}/{lynm:\\w{1}}/{wbtp:\\w{1}}/update-selective [U][G]根据主键修改(只修改非null字段)
     * @apiPrivate
     * @apiDescription [G]根据主键修改WQ_BCP_D(测站苯类有机物项目数据表)数据,只修改非null字段
     * @apiName (generate)update selected data
     * @apiGroup WQ_BCP_D-测站苯类有机物项目数据表
     * @apiVersion 1.0.0
     * @apiParam   {String}         stcd               测站编码
     * @apiParam   {String}         prpnm              垂线编号
     * @apiParam   {String}         lynm               层面编号
     * @apiParam   {String}         wbtp               水体类型
     * @apiParam   {Date}           spt                采样时间
     * @apiParam   {Double}         ben                苯
     * @apiParam   {Double}         jben               甲苯
     * @apiParam   {Double}         yben               乙苯
     * @apiParam   {Double}         erjben             二甲苯
     * @apiParam   {Double}         lben               氯苯
     * @apiParam   {Double}         benyx              苯乙烯
     * @apiParam   {Double}         erlb12             1，2二氯苯
     * @apiParam   {Double}         erlb14             1，4二氯苯
     * @apiParam   {Double}         slb123             1，2，3三氯苯
     * @apiParam   {Double}         slb124             1，2，4三氯苯
     * @apiParam   {Double}         slb135             1，3，5三氯苯
     * @apiParam   {Double}         silben             四氯苯
     * @apiParam   {Double}         xjben              硝基苯
     * @apiParam   {Double}         erxjb12            1，2二硝基苯
     * @apiParam   {Double}         erxjb13            1，3二硝基苯
     * @apiParam   {Double}         erxjb14            1，4二硝基苯
     * @apiParam   {Double}         erxjjb24           2，4二硝基甲苯
     * @apiParam   {Double}         sxjjb246           2，4，6三硝基甲苯
     * @apiParam   {Double}         xjlb2              2-硝基氯苯
     * @apiParam   {Double}         xjlb3              3-硝基氯苯
     * @apiParam   {Double}         xjlb4              4-硝基氯苯
     * @apiParam   {Double}         erxjlb24           2，4二硝基氯苯
     * @apiParam   {Double}         pcb                多氯联苯
     * @apiParam   {Double}         ybben              异丙苯
     * @apiParam   {Double}         benan              苯胺
     * @apiParam   {Double}         lbenan             联苯胺
     * @apiParam   {Double}         lbejsejzh          邻苯二甲酸二甲酯
     * @apiParam   {Double}         lbejsedzh          邻苯二甲酸二丁脂
     * @apiParam   {Double}         lbejsexzh          邻苯二甲酸二辛脂
     * @apiParam   {String}         nt                 备注
     * @apiParam   {String}         speRegData         特殊区域
     * @apiParam   {Date}           ts                 时间戳
     * @apiParam   {Date}           testComTm          化验完成时间
     * @apiSuccess {Integer}        status             1:修改成功;0:要修改的数据不存在(可能已被删除)
     * @apiSuccess {String}         message            成功/失败消息内容
     * @apiSuccess {Object}         data               额外返回的数据
     * @apiSampleRequest wq/bcp/d/{stcd}/{spt}/{prpnm}/{lynm}/{wbtp}/update-selective
     * * @apiSuccessExample 修改成功:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":1,
     * "message":"成功",
     * "data":null
     *   }
     * }
     * @apiSuccessExample 修改失败:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":0,
     * "message":"失败",
     * "data":null
     *   }
     * }
     * @apiParamExample {json} 请求示例:
     * {
     * "stcd": null,
     * "prpnm": null,
     * "lynm": null,
     * "wbtp": null,
     * "spt": null,
     * "ben": null,
     * "jben": null,
     * "yben": null,
     * "erjben": null,
     * "lben": null,
     * "benyx": null,
     * "erlb12": null,
     * "erlb14": null,
     * "slb123": null,
     * "slb124": null,
     * "slb135": null,
     * "silben": null,
     * "xjben": null,
     * "erxjb12": null,
     * "erxjb13": null,
     * "erxjb14": null,
     * "erxjjb24": null,
     * "sxjjb246": null,
     * "xjlb2": null,
     * "xjlb3": null,
     * "xjlb4": null,
     * "erxjlb24": null,
     * "pcb": null,
     * "ybben": null,
     * "benan": null,
     * "lbenan": null,
     * "lbejsejzh": null,
     * "lbejsedzh": null,
     * "lbejsexzh": null,
     * "nt": null,
     * "speRegData": null,
     * "ts": null,
     * "testComTm": null
     * }
     * @apiUse exceptions
     */
    @PUT
    @Path("{stcd:\\w{8}}/{spt}/{prpnm:\\w{1}}/{lynm:\\w{1}}/{wbtp:\\w{1}}/update-selective")
    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
    public Response updateSelective(@PathParam("stcd") String stcd,@PathParam("spt") String spt,@PathParam("prpnm") String prpnm,@PathParam("lynm") String lynm,@PathParam("wbtp") String wbtp, WqBcpD record) {
        record.setStcd(stcd);
        LocalDateTime.parse(spt,LocalDateTimeUtil.DATE_TIME_FORMATTER_YMD_HMS);
        record.setPrpnm(prpnm);
        record.setLynm(lynm);
        record.setWbtp(wbtp);
        LOGGER.info("根据主键修改(只修改非null字段) 测站苯类有机物项目数据表,参数 WqBcpD:{}", record);
        return Response.ok(ApiResultBuilder.create(this, StatusRespBuilder.update(wqBcpDService.updateByPrimaryKeySelective(record)))).build();
    }

    /**
     * @api {post} wq/bcp/d/updateBatch [U][G]根据主键批量修改(只修改非null字段)
     * @apiPrivate
     * @apiDescription [G]根据批量主键修改WQ_BCP_D(测站苯类有机物项目数据表)数据,只修改非null字段
     * @apiName (generate)updateBatch selected data
     * @apiGroup WQ_BCP_D-测站苯类有机物项目数据表
     * @apiVersion 1.0.0
     * @apiParam   {String}         stcd               测站编码
     * @apiParam   {String}         prpnm              垂线编号
     * @apiParam   {String}         lynm               层面编号
     * @apiParam   {String}         wbtp               水体类型
     * @apiParam   {Date}           spt                采样时间
     * @apiParam   {Double}         ben                苯
     * @apiParam   {Double}         jben               甲苯
     * @apiParam   {Double}         yben               乙苯
     * @apiParam   {Double}         erjben             二甲苯
     * @apiParam   {Double}         lben               氯苯
     * @apiParam   {Double}         benyx              苯乙烯
     * @apiParam   {Double}         erlb12             1，2二氯苯
     * @apiParam   {Double}         erlb14             1，4二氯苯
     * @apiParam   {Double}         slb123             1，2，3三氯苯
     * @apiParam   {Double}         slb124             1，2，4三氯苯
     * @apiParam   {Double}         slb135             1，3，5三氯苯
     * @apiParam   {Double}         silben             四氯苯
     * @apiParam   {Double}         xjben              硝基苯
     * @apiParam   {Double}         erxjb12            1，2二硝基苯
     * @apiParam   {Double}         erxjb13            1，3二硝基苯
     * @apiParam   {Double}         erxjb14            1，4二硝基苯
     * @apiParam   {Double}         erxjjb24           2，4二硝基甲苯
     * @apiParam   {Double}         sxjjb246           2，4，6三硝基甲苯
     * @apiParam   {Double}         xjlb2              2-硝基氯苯
     * @apiParam   {Double}         xjlb3              3-硝基氯苯
     * @apiParam   {Double}         xjlb4              4-硝基氯苯
     * @apiParam   {Double}         erxjlb24           2，4二硝基氯苯
     * @apiParam   {Double}         pcb                多氯联苯
     * @apiParam   {Double}         ybben              异丙苯
     * @apiParam   {Double}         benan              苯胺
     * @apiParam   {Double}         lbenan             联苯胺
     * @apiParam   {Double}         lbejsejzh          邻苯二甲酸二甲酯
     * @apiParam   {Double}         lbejsedzh          邻苯二甲酸二丁脂
     * @apiParam   {Double}         lbejsexzh          邻苯二甲酸二辛脂
     * @apiParam   {String}         nt                 备注
     * @apiParam   {String}         speRegData         特殊区域
     * @apiParam   {Date}           ts                 时间戳
     * @apiParam   {Date}           testComTm          化验完成时间
     * @apiSuccess {Integer}        status             1:修改成功;0:要修改的数据不存在(可能已被删除)
     * @apiSuccess {String}         message            成功/失败消息内容
     * @apiSuccess {Object}         data               额外返回的数据
     * @apiSampleRequest  wq/bcp/d/updateBatch
     * * @apiSuccessExample 修改成功:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":1,
     * "message":"成功",
     * "data":null
     *   }
     * }
     * @apiSuccessExample 修改失败:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":0,
     * "message":"失败",
     * "data":null
     *   }
     * }
     * @apiParamExample {json} 请求示例:
     * [{
     * "stcd": null,
     * "prpnm": null,
     * "lynm": null,
     * "wbtp": null,
     * "spt": null,
     * "ben": null,
     * "jben": null,
     * "yben": null,
     * "erjben": null,
     * "lben": null,
     * "benyx": null,
     * "erlb12": null,
     * "erlb14": null,
     * "slb123": null,
     * "slb124": null,
     * "slb135": null,
     * "silben": null,
     * "xjben": null,
     * "erxjb12": null,
     * "erxjb13": null,
     * "erxjb14": null,
     * "erxjjb24": null,
     * "sxjjb246": null,
     * "xjlb2": null,
     * "xjlb3": null,
     * "xjlb4": null,
     * "erxjlb24": null,
     * "pcb": null,
     * "ybben": null,
     * "benan": null,
     * "lbenan": null,
     * "lbejsejzh": null,
     * "lbejsedzh": null,
     * "lbejsexzh": null,
     * "nt": null,
     * "speRegData": null,
     * "ts": null,
     * "testComTm": null
     * }]
     * @apiUse exceptions
     */
    @POST
    @Path("updateBatch")
    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
    public Response updateBatch(List<WqBcpD> record) {
        LOGGER.info("根据主键批量修改(只修改非null字段) 测站苯类有机物项目数据表,参数 WqBcpD:{}", record);
        return Response.ok(ApiResultBuilder.create(this, StatusRespBuilder.update(wqBcpDService.updateBatch(record)))).build();
    }

    /**
     * @api {delete} wq/bcp/d/{stcd:\\w{8}}/{spt}/{prpnm:\\w{1}}/{lynm:\\w{1}}/{wbtp:\\w{1}} [D][G]根据主键删除
     * @apiPrivate
     * @apiDescription [G]根据主键删除WQ_BCP_D(测站苯类有机物项目数据表)数据
     * @apiName (generate)delete by primary key
     * @apiGroup WQ_BCP_D-测站苯类有机物项目数据表
     * @apiVersion 1.0.0
     * @apiSampleRequest wq/bcp/d/{stcd}/{spt}/{prpnm}/{lynm}/{wbtp}
     * @apiParam   {String}         stcd               【必须】测站编码
     * @apiParam   {Date}           spt                【必须】采样时间
     * @apiParam   {String}         prpnm              【必须】垂线编号
     * @apiParam   {String}         lynm               【必须】层面编号
     * @apiParam   {String}         wbtp               【必须】水体类型
     * @apiSuccess {Integer}        status             1:删除成功;0:要删除的数据不存在(可能已被删除).
     * @apiSuccess {String}         message            成功/失败消息内容
     * @apiSuccess {Object}         data               额外返回的数据
     * @apiSuccessExample 删除成功:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":1,
     * "message":"成功",
     * "data":null
     *   }
     * }
     * @apiSuccessExample 删除失败:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":0,
     * "message":"失败",
     * "data":null
     *   }
     * }
     * @apiUse exceptions
     */
    @DELETE
    @Path("{stcd:\\w{8}}/{spt}/{prpnm:\\w{1}}/{lynm:\\w{1}}/{wbtp:\\w{1}}")
    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
    public Response delete(@PathParam("stcd") String stcd,@PathParam("spt") String spt,@PathParam("prpnm") String prpnm,@PathParam("lynm") String lynm,@PathParam("wbtp") String wbtp) {
         WqBcpDKey pk = new WqBcpDKey();
        pk.setStcd(stcd);
        LocalDateTime.parse(spt,LocalDateTimeUtil.DATE_TIME_FORMATTER_YMD_HMS);
        pk.setPrpnm(prpnm);
        pk.setLynm(lynm);
        pk.setWbtp(wbtp);
        LOGGER.info("根据主键删除 测站苯类有机物项目数据表,参数 pk:{}", pk);
        Integer rows = wqBcpDService.deleteByPrimaryKey(pk);
        return Response.ok(ApiResultBuilder.create(this, StatusRespBuilder.delete(rows))).build();
    }

    /**
     * @api {delete} wq/bcp/d/by-filter [D][G]根据条件删除
     * @apiPrivate
     * @apiDescription [G]根据条件删除WQ_BCP_D(测站苯类有机物项目数据表)数据
     * @apiName (generate)delete by filter
     * @apiGroup WQ_BCP_D-测站苯类有机物项目数据表
     * @apiVersion 1.0.0
     * @apiSampleRequest wq/bcp/d/by-filter
     * @apiParam   {String}         stcd               测站编码
     * @apiParam   {List(String)}   prpnmList          (数组)垂线编号
     * @apiParam   {List(String)}   lynmList           (数组)层面编号
     * @apiParam   {List(String)}   wbtpList           (数组)水体类型
     * @apiParam   {Date}           sptBgTm            (开始时间)采样时间
     * @apiParam   {Date}           sptEdTm            (结束时间)采样时间
     * @apiParam   {Double}         benMin             (最小)苯
     * @apiParam   {Double}         benMax             (最大)苯
     * @apiParam   {Double}         jbenMin            (最小)甲苯
     * @apiParam   {Double}         jbenMax            (最大)甲苯
     * @apiParam   {Double}         ybenMin            (最小)乙苯
     * @apiParam   {Double}         ybenMax            (最大)乙苯
     * @apiParam   {Double}         erjbenMin          (最小)二甲苯
     * @apiParam   {Double}         erjbenMax          (最大)二甲苯
     * @apiParam   {List(Double)}   lbenList           (数组)氯苯
     * @apiParam   {List(Double)}   benyxList          (数组)苯乙烯
     * @apiParam   {Double}         erlb12Min          (最小)1，2二氯苯
     * @apiParam   {Double}         erlb12Max          (最大)1，2二氯苯
     * @apiParam   {Double}         erlb14Min          (最小)1，4二氯苯
     * @apiParam   {Double}         erlb14Max          (最大)1，4二氯苯
     * @apiParam   {Double}         slb123Min          (最小)1，2，3三氯苯
     * @apiParam   {Double}         slb123Max          (最大)1，2，3三氯苯
     * @apiParam   {Double}         slb124Min          (最小)1，2，4三氯苯
     * @apiParam   {Double}         slb124Max          (最大)1，2，4三氯苯
     * @apiParam   {Double}         slb135Min          (最小)1，3，5三氯苯
     * @apiParam   {Double}         slb135Max          (最大)1，3，5三氯苯
     * @apiParam   {Double}         silbenMin          (最小)四氯苯
     * @apiParam   {Double}         silbenMax          (最大)四氯苯
     * @apiParam   {Double}         xjbenMin           (最小)硝基苯
     * @apiParam   {Double}         xjbenMax           (最大)硝基苯
     * @apiParam   {Double}         erxjb12Min         (最小)1，2二硝基苯
     * @apiParam   {Double}         erxjb12Max         (最大)1，2二硝基苯
     * @apiParam   {Double}         erxjb13Min         (最小)1，3二硝基苯
     * @apiParam   {Double}         erxjb13Max         (最大)1，3二硝基苯
     * @apiParam   {Double}         erxjb14Min         (最小)1，4二硝基苯
     * @apiParam   {Double}         erxjb14Max         (最大)1，4二硝基苯
     * @apiParam   {Double}         erxjjb24Min        (最小)2，4二硝基甲苯
     * @apiParam   {Double}         erxjjb24Max        (最大)2，4二硝基甲苯
     * @apiParam   {List(Double)}   sxjjb246List       (数组)2，4，6三硝基甲苯
     * @apiParam   {Double}         xjlb2Min           (最小)2-硝基氯苯
     * @apiParam   {Double}         xjlb2Max           (最大)2-硝基氯苯
     * @apiParam   {Double}         xjlb3Min           (最小)3-硝基氯苯
     * @apiParam   {Double}         xjlb3Max           (最大)3-硝基氯苯
     * @apiParam   {Double}         xjlb4Min           (最小)4-硝基氯苯
     * @apiParam   {Double}         xjlb4Max           (最大)4-硝基氯苯
     * @apiParam   {List(Double)}   erxjlb24List       (数组)2，4二硝基氯苯
     * @apiParam   {Double}         pcbMin             (最小)多氯联苯
     * @apiParam   {Double}         pcbMax             (最大)多氯联苯
     * @apiParam   {Double}         ybbenMin           (最小)异丙苯
     * @apiParam   {Double}         ybbenMax           (最大)异丙苯
     * @apiParam   {Double}         benanMin           (最小)苯胺
     * @apiParam   {Double}         benanMax           (最大)苯胺
     * @apiParam   {Double}         lbenanMin          (最小)联苯胺
     * @apiParam   {Double}         lbenanMax          (最大)联苯胺
     * @apiParam   {Double}         lbejsejzhMin       (最小)邻苯二甲酸二甲酯
     * @apiParam   {Double}         lbejsejzhMax       (最大)邻苯二甲酸二甲酯
     * @apiParam   {Double}         lbejsedzhMin       (最小)邻苯二甲酸二丁脂
     * @apiParam   {Double}         lbejsedzhMax       (最大)邻苯二甲酸二丁脂
     * @apiParam   {Double}         lbejsexzhMin       (最小)邻苯二甲酸二辛脂
     * @apiParam   {Double}         lbejsexzhMax       (最大)邻苯二甲酸二辛脂
     * @apiParam   {String}         nt                 备注
     * @apiParam   {List(String)}   speRegDataList     (数组)特殊区域
     * @apiParam   {Date}           tsBgTm             (开始时间)时间戳
     * @apiParam   {Date}           tsEdTm             (结束时间)时间戳
     * @apiParam   {Date}           testComTmBgTm      (开始时间)化验完成时间
     * @apiParam   {Date}           testComTmEdTm      (结束时间)化验完成时间
     * @apiSuccess {Integer}        status             通常1或者>1:删除成功;0:没有符合条件的数据.
     * @apiSuccess {String}         message            成功/失败消息内容
     * @apiSuccess {Object}         data               额外返回的数据
     * @apiSuccessExample 删除成功:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":1,
     * "message":"成功",
     * "data":null
     *   }
     * }
     * @apiSuccessExample 删除失败:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":0,
     * "message":"失败",
     * "data":null
     *   }
     * }
     * @apiUse exceptions
     */
    @DELETE
    @Path("by-filter")
    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
    public Response deleteByFilter(WqBcpDQo filter) {
        LOGGER.info("根据条件删除 测站苯类有机物项目数据表,参数 WqBcpDQo:{}", filter);
        Integer rows = wqBcpDService.deleteByFilter(filter);
        return Response.ok(ApiResultBuilder.create(this, StatusRespBuilder.delete(rows))).build();
    }
}
